<template>
  <page-stack v-bind="routeAttrs" />
</template>

<script>
import Vue from 'vue'
export default {
  name: 'ChannelTask2',
  computed: {
    routeAttrs() {
      const meta = this.$route.meta ? { ...this.$route.meta } : {}
      const query = this.$route.query ? { ...this.$route.query } : {}
      const params = this.$route.params ? { ...this.$route.params } : {}
      const p = { ...meta, ...query, ...params }
      delete p.title
      return p
    }
  },
  created() {
    if (!this.$goBackCall) {
      Vue.prototype.$goBackCall = title => {
        return this.$msgbox({
          title: title || '取消',
          message: '是否放弃当前编辑内容，直接返回列表？',
          showCancelButton: true,
          type: 'warning'
        }).then(() => {
          return undefined
        })
      }
    }
  }
}
</script>
<style lang="scss" scoped>
/deep/.el-icon-circle-close:before{
  color: #909399 !important
}
</style>
